package com.gemframework.modules.extent;

import com.gemframework.model.common.BaseResultData;
import com.gemframework.service.GradeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/Grade")
public class GradeAPI {

    @Resource
    private GradeService gradeService;

    //根据id查询说明表信息
    @GetMapping("/selGradeById")
    public BaseResultData selGradeById(Integer id){
        return BaseResultData.SUCCESS(gradeService.getById(id));
    }

    //科目信息表类型集合查询
    @GetMapping("/list")
    public BaseResultData list(){
        return  BaseResultData.SUCCESS(gradeService.list());
    }

}
